package org.jeecg.modules.report.mapper;

import java.util.List;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.report.entity.ReportConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.report.vo.StationBean;

/**
 * @Description: 战图显示配置
 * @Author: jeecg-boot
 * @Date:   2019-08-20
 * @Version: V1.0
 */
public interface ReportConfigMapper extends BaseMapper<ReportConfig> {

    int deleteById(ReportConfig reportConfig);

    List<ReportConfig> findConfigByProjectId(@Param("reportType") String reportType,@Param("projectId") String projectId);

    List<ReportConfig> findConfigPage(IPage<ReportConfig> page,@Param("report") ReportConfig reportConfig);

    List<ReportConfig> findConfigByDepartIdOnly(@Param("reportType") String reportType, @Param("departId") String departId);

    @SqlParser(filter = true)
    List<ReportConfig> findAll();

    @SqlParser(filter = true)
    int saveBatch(@Param("reportConfigList") List<ReportConfig> reportConfigList);

    List<ReportConfig> findListByUser(StationBean stationBean);
}
